﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%var list = v.data("list") as List<Form_Group>; %>

<%if (list.Count > 0){ %>
<% foreach (var row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.formgroupname %>（<%=row.formcode %>）" <%if (bllPowerGroupService.powercheck("communicate", "formedit", modelpowergroup))  { %> ondblClick="javascript:parent.onbotton('<%=row.formgroupname %>_{formmain_edit_title}',''<%=link.to(new wojilu.Web.Controller.Admin.Qycms.FormController().FormEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'formedit<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="6%"><%=row.Id %></td>
			<td width="8%"><%=row.lng %></td>
			<td width="39%"><%=row.formgroupname %>（<%=row.formcode %>）</td>
			<td width="6%" id="infotype">
				<table>
					<tr>
						<td><%if(row.ismenu==1){ %><span class="select_ok"></span><%}else{ %><span class="select_no"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="6%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isseccode==1){ %><span class="isseccode_ok" title="_{formmain_isseccode_ok}"></span><%}else{ %><span class="isseccode_no" title="_{formmain_isseccode_no}"></span><%} %></td>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{formmain_audit_ok}"></span><%}else{ %><span class="audit_no" title="_{formmain_audit_no}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="30%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit2" onclick="javascript:parent.onbotton('<%=row.formgroupname %>_{formmain_text_attlist_title}','#{view}?loadfun=formattlist&fgid=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'attlist<%=row.Id %>',self.frameElement.getAttribute('name'));" id="attlist<%=row.Id %>" href="#body" title="_{viewmodeatt_botton}" hidefocus="true">_{viewmodeatt_botton}</a></td>
                        <%if (bllPowerGroupService.powercheck("communicate", "messlist", modelpowergroup))  { %>
						<td class="padding-left3"><a class="setedit3" onclick="javascript:parent.onbotton('_{formmain_text_bottonview}','#{view}?loadfun=messlist&fgid=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'messlist<%=row.Id %>',self.frameElement.getAttribute('name'));" id="messlist<%=row.Id %>" href="#body" title="_{formmain_text_bottonview}" hidefocus="true">_{formmain_text_bottonview}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("communicate", "formedit", modelpowergroup))  { %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:parent.onbotton('<%=row.formgroupname %>_{formmain_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.FormController().FormEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'formedit<%=row.Id %>',self.frameElement.getAttribute('name'));" id="formedit<%=row.Id %>" href="#body" title="<%=row.formgroupname %>_{formmain_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("communicate", "delformattr", modelpowergroup))  { %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:submiturl('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.FormController().FormDel,row.Id) %>?freshid='+Math.random(),'#{load}','_{run_ok}','_{run_no}',true,'_{del_messok}','selectform','selectall','check_all');" href="#body" title="_{setdel_botton}" hidefocus="true">_{setdel_botton}</a></td>
						<%} %>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>